package com.cloudkinto.bo.order.shelf;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 查看上架页产品详情(常规入库按产品)
 *
 * @author long
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ShelfBySkuQueryBo {
    /**
     * 当前页
     */
    @Builder.Default
    public Integer current = 1;
    /**
     * 每页条数
     */
    @Builder.Default
    public Integer pageSize = 10;

    @NotNull(message = "上架单id不可为空")
    @ApiModelProperty("上架单id")
    private Long id;

    @NotEmpty(message = "上架单号不可为空")
    @ApiModelProperty("上架单号")
    private String pasNo;

    @ApiModelProperty("sku")
    private String sku;
}
